determine the value of n